<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script src="./lib/core.js"></script>
    <script src="./lib/sha256.js"></script>
    <script src="./lib/hmac.js"></script>
    <script src="./lib/hmac-sha256.js"></script>
    <script src="./lib/enc-base64.js"></script>
    <script>
        // HmacSHA256
        console.log(CryptoJS)
        let hash = CryptoJS.HmacSHA256("Message", "secret");
        let hash2 = CryptoJS.HmacSHA256("Message", "fjkdsjfkj+fdlsjfljsd+222222+{fdsfsdjfksdj}+{fsdfsdfsdf}");
        console.log(hash)
        //qnR8UCqJggD55PohusaBNviGoOJ67HC6Btry4qXLVZc=
        let a = CryptoJS.enc.Base64.stringify(hash)
        // 28ktF+PjftC2PTV9BPuUrKiY0OYa+cmv6kzEnLAI+QQ=
        let b = CryptoJS.enc.Base64.stringify(hash2)
        console.log(a)
        console.log(b)
    </script>
</body>
</html>